package com.xb.controller;

import com.xb.entity.MedicalExamination;
import com.xb.service.IMedicalExaminationService;
import com.xb.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * entityController
 * /api/medicalExamination
 */
@RestController
@RequestMapping("/api/medicalExamination")
public class MedicalExaminationController
{
    @Autowired
    private IMedicalExaminationService medicalExaminationService;

    @PostMapping("/saveMedicalExaminationInfo")
    public Result saveMedicalExaminationInfo(@RequestBody MedicalExamination medicalExamination, HttpSession session){
        return medicalExaminationService.saveMedicalExaminationInfo(medicalExamination, session);
    }

}
